//
//  ViewController.m
//  CycleShuffling
//
//  Created by 好米有易 on 2017/9/5.
//  Copyright © 2017年 好米有易. All rights reserved.
//

#import "ViewController.h"
#import "CycleView.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    CycleView *cyleView = [[CycleView alloc] initWithFrame:CGRectMake(0, 100, self.view.bounds.size.width, 1000 / 763 * self.view.bounds.size.width)];
   
    cyleView.cycleData = [NSArray arrayWithObjects:@"timg-2", @"timg", @"timg-1", @"timg-2", @"timg", nil];
    
    cyleView.indexBlock = ^(NSInteger index) {
        
        NSLog(@"%@", @(index));
    };
    
    [self.view addSubview:cyleView];

}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
